package net.xdclass.xdclass.mapper;

import net.xdclass.xdclass.model.pojo.VideoOrder;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface VideoOrderMapper {

    VideoOrder findByUserIdAndVideoIdAndState(@Param("user_id") int userId, @Param("video_id") int videoId, @Param("state") int state);


    int saveOrder(VideoOrder videoOrder);

    List<VideoOrder> findById(@Param("user_id") Integer userId);
}
